from app.services.family.account import account_service,AccountCreate
from datetime import datetime,date
import asyncio
from app.core.database import initializer

async def test():
    success = await initializer.init_database()
    if success:
        # 初始化默认数据
        await initializer.init_base_data()

    data = await account_service.get_monthly_trend(
        months=12
    )
    print(data)

if __name__ == "__main__":
    asyncio.run(test())
